package com.banch.cloud.seata.order.dao;

import com.banch.cloud.seata.order.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderDao {

    /**
     * //新建订单
     *
     * @param
     * @return
     * @author banch
     * @date 2020/7/30
     * @throw
     **/
    void create(Order order);


    /**
     * //修改订单状态，从零改为1
     *
     * @param
     * @return
     * @author banch
     * @date 2020/7/30
     * @throw
     **/
    void update(@Param("id") Long id, @Param("status") Integer status);
}
